#ifndef RL_VK36N16I_h
#define RL_VK36N16I_h

#include <Arduino.h>
#include <Wire.h>

// 按键宏定义
#define Key_1    0x01
#define Key_4    0x02
#define Key_7    0x04
#define Key_X    0x08
#define Key_2    0x10
#define Key_5    0x20
#define Key_8    0x40
#define Key_0    0x80
#define Key_3    0x0100
#define Key_6    0x0200
#define Key_9    0x0400
#define Key_J    0x0800
#define Key_A    0x1000
#define Key_B    0x2000
#define Key_C    0x4000
#define Key_D    0x8000

class VK36N16I_TOUCH {
private:
    uint8_t _address;
    const char* _keyMap = "147*2580369#ABCD";

public:
    VK36N16I_TOUCH(uint8_t address = 0x65);
    bool begin();
    String getKeys();
    bool touchRead(uint16_t key);
};

#endif    